package com.samsung.service.vote;

import java.util.List;
import java.util.Map;

import org.springframework.web.servlet.ModelAndView;

import com.samsung.dto.vote.VoteActionDto;
import com.samsung.dto.vote.VoteDetailDto;
import com.samsung.model.vote.VoteRecord;
/**
 * @ClassName: VoteHistoryService
 * @Description: TODO(投票记录方法的接口)
 * @author qin1.li
 * @date 2015年4月27日下午2:20:55
 * @sine 1.0
 */

public interface VoteHistoryService {
	int getCountByUserAndIP(String tid, String uid, String ip);

	int saveVoteHistory(VoteRecord voteHistory);
	
	/**
	 * 新增开始
	 */
	//check vote action
	Map<String, String> checkVoteDetail(VoteActionDto voteActionDto);
	
	//save vote action
	Map<String, String> saveVoteAction(VoteActionDto voteActionDto);
	
	//get vote type
	String getVoteType(String tid);
	
	//get vote detail use topic
	List<Map<String, Object>> getVoteDetail(String tid);
	
	//get vote detail use topic(return type is object not map)
	List<VoteDetailDto> getVoteDetailCt(String tid);
	//retun different view
	ModelAndView getView(String tid, String uid, String ip);
	/**
	 * 新增结束
	 */

}